package com.youzikj.wx.core.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 任务
 */
public class Task implements Serializable{

	private static final long serialVersionUID = -6591893454189517411L;
	
	private Integer id;
	
	/**
	 * 海报地址
	 */
	private String image_url;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 推广链接
	 */
	private String link;
	
	/**
	 * 开始日期
	 */
	private String start_date;
	
	/**
	 * 结束日期
	 */
	private String end_date;
	
	/**
	 * 单价
	 */
	private Integer amount;

	/**
	 * 当前推广数
	 */
	private Integer current_num;
	
	/**
	 * 总推广数
	 */
	private Integer total_num;
	
	/**
	 * 总金额：任务金额+手续费
	 */
	private Integer total_amount;

	/**
	 * 任务金额：单价*总推广数
	 */
	private Integer task_amount;
	
	/**
	 * 手续费：任务金额*10%
	 */
	private Integer platform_amount;
	
	/**
	 * 任务状态：1-未结束；2-已结束
	 */
	private Integer task_state;
	
	/**
	 * 红包状态：1-未发送；2-已发送
	 */
	private Integer red_state;
	
	/**
	 * 退款状态：1-未退款；2-已退款
	 */
	private Integer refund_state;
	
	/**
	 * 发布者
	 */
	private Pub pub;
	
	/**
	 * 领取者
	 */
	private List<Sub> subList;
	
	private Date create_time;
	
	private Date update_time;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getImage_url() {
		return image_url;
	}

	public void setImage_url(String image_url) {
		this.image_url = image_url;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getStart_date() {
		return start_date;
	}

	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public String getEnd_date() {
		return end_date;
	}

	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}

	public Double getAmount_() {
		return amount * 0.01;
	}
	
	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getCurrent_num() {
		return current_num;
	}

	public void setCurrent_num(Integer current_num) {
		this.current_num = current_num;
	}

	public Integer getTotal_num() {
		return total_num;
	}

	public void setTotal_num(Integer total_num) {
		this.total_num = total_num;
	}

	public Integer getTotal_amount() {
		return total_amount;
	}

	public void setTotal_amount(Integer total_amount) {
		this.total_amount = total_amount;
	}

	public Integer getTask_amount() {
		return task_amount;
	}

	public void setTask_amount(Integer task_amount) {
		this.task_amount = task_amount;
	}

	public Integer getPlatform_amount() {
		return platform_amount;
	}

	public void setPlatform_amount(Integer platform_amount) {
		this.platform_amount = platform_amount;
	}

	public Integer getTask_state() {
		return task_state;
	}

	public void setTask_state(Integer task_state) {
		this.task_state = task_state;
	}

	public Integer getRed_state() {
		return red_state;
	}

	public void setRed_state(Integer red_state) {
		this.red_state = red_state;
	}

	public Integer getRefund_state() {
		return refund_state;
	}

	public void setRefund_state(Integer refund_state) {
		this.refund_state = refund_state;
	}

	public Pub getPub() {
		return pub;
	}

	public void setPub(Pub pub) {
		this.pub = pub;
	}

	public List<Sub> getSubList() {
		return subList;
	}

	public void setSubList(List<Sub> subList) {
		this.subList = subList;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	
}
